<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<title>{{status}}错误！</title>
		<link rel="stylesheet" type="text/css" href="/public/css/error.css" />
	</head>

	<body>
		<div class="error_page">
			<div class="img"><img src="/public/img/404.svg" /></div>
			<div class="txt">
				<h1>{{ status }}</h1>
				<h2>{{ message }}</h2>
				<p>{{ content }}</p>
				<a href="javascript:;" btn-name="{{ btnname }}" onclick="clickFunc({{status}})"></a>
			</div>
		</div>
	</body>
	<script type="text/javascript">
		function clickFunc(status){
			status = typeof(status) == 'number' ? status : Number(status);
			switch(status) {
				case 404:
					window.location.href = '/';
				break;
				case 500:
					window.location.reload();
				break;
			}
		}
	</script>

</html>